<template>
用户名：
<el-input v-model="name" style="width: 240px" />
密码:
<el-input v-model="mi" style="width: 240px" />
<br/>
<el-button type="primary" @click="Tiao">登录</el-button>
</template>

<script>
import { ref, reactive, onMounted } from "vue";
import { useRoute, useRouter } from "vue-router";
export default {
setup(){
    let router=useRouter();
    let name=ref("");
    let mi=ref("");

    function Tiao(){
        router.push("/Main")
    }
    return{
        name,
        mi,
        Tiao,
        router
    }
}
}
</script>

<style></style>